package com.item.service;


import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class MemberService {

    @SentinelResource(value = "hello",fallback = "sayHelloFail")
    public String getHello(){

        return "Hello";
    }

    public String sayHelloFail() {
        return "I am sorry, Member! ";
    }
}
